<nav class="bar bar-tab">
    <a class="tab-item external " href="javascript:app.turnHref('index.html','#index','index.html#index');">
        <span class="icon icon-home"></span>
        <span class="tab-label">首页</span>
    </a>
    <a class="tab-item external" href="javascript:app.turnHref('index.html','#index','index.html#search');">
        <span class="icon icon-search"></span>
        <span class="tab-label">搜索</span>
    </a>
    <a class="tab-item external" href="javascript:app.turnHref('index.html','#index','index.html#consult');">
        <span class="icon icon-emoji"></span>
        <span class="tab-label">咨询</span>
    </a>
    <a class="tab-item external active" href="javascript:app.turnHref('index.html','#index','index.html#mine');">
        <span class="icon icon-me"></span>
        <span class="tab-label">用户</span>
    </a>
</nav>
<div class="content mine" ng-controller="mine" ng-init="showUserInfo();showUserInfo2()">
    <div class="row no-gutter info-father ">
        <div class="cover-black"></div>
        <div class="to-padding-top info-content">
            <div class="head-content">
                <div class="head-box" onclick="app.turnHref('index.html','#mine','user-info.html',true);">
                    <img ng-if="userInfo.userAvatar" ng-src="{{userInfo.userAvatarAddress}}" alt="">
                    <img ng-if="!userInfo.userAvatar" src="img/loginnone.png" alt="">
                </div>
            </div>
            <div ng-if="userInfo.userId" class="simple-info-content bar-tab">
                <div class="info-box tab-item" onclick="app.turnHref('index.html','#mine','user-info.html',true);">
                    <p class="nick-name" ng-if="userInfo.userNickName">{{userInfo.userNickName}}</p>

                    <p class="nick-name" ng-if="!userInfo.userPhoneNumber">{{userInfo.userPhoneNumber}}</p>

                    <p class="simple-info">{{userInfo.userAge | append:'岁'}} {{userInfo.userSexWord}}</p>

                    <p class="user-detail" ng-if="userInfo.userDetail">{{userInfo.userDetail}}</p>

                    <p class="user-detail" ng-if="!userInfo.userDetail">这个人很懒什么都没留下</p>
                </div>
            </div>
            <div ng-if="!userInfo.userId" class="simple-info-content bar-tab">
                <div class="info-box tab-item">
                    <p class="status-tip">您还没有登录</p>

                    <p class="status-login" onclick="app.turnHref('index.html','#mine','user-check.html#login');">
                        点击这里登录</p>
                </div>
            </div>
        </div>
    </div>
    <div class="bar-content bar-tab">
        <a class="tab-item" href="javascript:;" ng-click="saveToMyGroup(0)">
            <img src="img/pingtuanzhong.png"><br/>
            <span class="tab-label">拼团中</span>
        </a>
        <a class="tab-item" href="javascript:;" ng-click="saveToMyGroup(1)">
            <img src="img/yichengtuan.png"><br/>
            <span class="tab-label">已成团</span>
        </a>
        <a class="tab-item" href="javascript:;" onclick="app.turnHref('index.html','#mine','user-address.html',true);">
            <img src="img/dizhi.png"><br/>
            <span class="tab-label">地址</span>
        </a>
    </div>
    <div class="list-block user-list">
        <ul>
            <li class="item-content item-link" onclick="app.turnHref('index.html','#mine','user-order.html',true);">
                <div class="item-media"><img src="img/order_icn.png"></div>
                <div class="item-inner">
                    <div class="item-title">全部订单</div>
                </div>
            </li>
            <li class="item-content item-link" onclick="app.turnHref('index.html','#mine','my-group.html',true);">
                <div class="item-media"><img src="img/mygroup.png"></div>
                <div class="item-inner">
                    <div class="item-title">我的团</div>
                </div>
            </li>
            <li class="item-content item-link" ng-show="userInfos.userPower!=0"
                onclick="app.turnHref('index.html','#mine','group-init.html',true);">
                <div class="item-media"><img src="img/open_groupicn.png"></div>
                <div class="item-inner">
                    <div class="item-title">发起团</div>
                </div>
            </li>
            <li ng-show="userInfos.userPower!=0" class="item-content item-link"
                onclick="app.turnHref('index.html','#mine','active-init.html',true);">
                <div class="item-media"><img src="img/openactive.png"></div>
                <div class="item-inner">
                    <div class="item-title">发布活动</div>
                </div>
            </li>
            <li class="item-content item-link" onclick="app.turnHref('index.html','#mine','user-info.html',true);">
                <div class="item-media"><img src="img/pwesonalicn.png"></div>
                <div class="item-inner">
                    <div class="item-title">个人资料</div>
                </div>
            </li>
            <li class="item-content item-link" onclick="app.turnHref('index.html','#mine','user-bill.html',true);">
                <div class="item-media"><img src="img/zhanghu.png"></div>
                <div class="item-inner">
                    <div class="item-title">我的账户</div>
                </div>
            </li>
            <li class="item-content item-link" onclick="app.turnHref('index.html','#mine','about.html');">
                <div class="item-media"><img src="img/guanyuicn.png"></div>
                <div class="item-inner">
                    <div class="item-title">关于</div>
                </div>
            </li>
            <li ng-if="userInfo.userId" class="item-content item-link" ng-click="logout()">
                <div class="item-media"><img src="img/loginout.png"></div>
                <div class="item-inner">
                    <div class="item-title">注销</div>
                </div>
            </li>
        </ul>
    </div>
</div>
<div class="head-cover to-padding-top"></div>
<div ng-init="suiMobileInit(true)"></div>